package Source;

import IO.Output;

import java.util.HashMap;

/**
 * Created by:
 * User: Igor Martynovich and Guzenko Igor
 * Date: 16.11.13
 */
public class NotificationsStorage {


    private HashMap<MsgKeys,String> messagesMap = new HashMap<>(20);

    public NotificationsStorage(){
           messagesMap.put(MsgKeys.ENTER_LOG_MSG,"Enter login: ");
           messagesMap.put(MsgKeys.ENTER_PASS_MSG,"Enter password: ");
           messagesMap.put(MsgKeys.START_MSG,"Hello, dear friend!\nIf you want to register - press 1, \n if you log in please 2");
           messagesMap.put(MsgKeys.STATISTIC_MSG,"User %s answered correctly to %s out of %s questions");
           messagesMap.put(MsgKeys.START_TEST_MSG,"Let's start testing!");
           messagesMap.put(MsgKeys.SAVE_MSG,"Save found. Load?");
           messagesMap.put(MsgKeys.YES_NO_MSG,"Enter only 'yes' or 'no'");
           messagesMap.put(MsgKeys.CHOISE_MSG,"Use questions from file?\n1 yes\n2 no");
           messagesMap.put(MsgKeys.RESULT_MSG,"Testing done. Correct answers: ");
           messagesMap.put(MsgKeys.SAVED_MSG,"Session saved. Come back.");
           messagesMap.put(MsgKeys.NEW_SESSION_MSG,"New session created");
           messagesMap.put(MsgKeys.LOAD_SESSION_MSG,"Save loaded...");
           messagesMap.put(MsgKeys.HELLO_MSG,"Hello ");

      }

    public void notify(MsgKeys key){
        Output.printLineMsg(messagesMap.get(key));
    }

    public String getNotification(MsgKeys key){
        return messagesMap.get(key);
    }




}
